<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>重置用户密码</title>
</head>
<body>
<h2>重置用户密码</h2>

<form th:action="@{/api/admin/reset-password}" method="post">
    <label for="userId">用户ID：</label>
    <input type="number" id="userId" name="userId" required><br><br>

    <label for="newPassword">新密码：</label>
    <input type="password" id="newPassword" name="newPassword" required><br><br>

    <input type="submit" value="重置密码">
</form>

<p th:if="${error}" style="color:red;" th:text="${error}"></p>
<p th:if="${success}" style="color:green;" th:text="${success}"></p>

<br>
<a href="/index.html">返回首页</a>
</body>
</html>